package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.ExpenseType;
import com.yiya.model.ExpenseTypeExample;
import com.yiya.model.ExpenseTypeModel;

public interface ExpenseTypeMapper {
    int countByExample(ExpenseTypeExample example);

    int deleteByExample(ExpenseTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ExpenseType record);

    int insertSelective(ExpenseType record);

    List<ExpenseType> selectByExample(ExpenseTypeExample example);

    ExpenseType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ExpenseType record, @Param("example") ExpenseTypeExample example);

    int updateByExample(@Param("record") ExpenseType record, @Param("example") ExpenseTypeExample example);

    int updateByPrimaryKeySelective(ExpenseType record);

    int updateByPrimaryKey(ExpenseType record);
    
    List<ExpenseType> selectByModel(ExpenseTypeModel record);
    
    int countByModel(ExpenseTypeModel record);
    
    List<ExpenseType> queryAllList(ExpenseTypeModel record);
}